package com.changlu.nacosconfig.controller;

import com.changlu.nacosconfig.config.Config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description:
 * @Author: changlu
 * @Date: 11:06 PM
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @Autowired
    private Config config;

    @GetMapping("/config")
    public String getUserInfo() {
        String res = config.toString();
        return res;
    }
}
